Skip to content

Add goto_trace_constant_pointer_exprt #5034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Aug 17, 2019

These are derivatives of constant_exprt which give a pointer's numerical address in the usual
constant value slot, but which also have an operand giving its symbolic value (e.g. "0xabcd0004"
vs. "&some_object + 4"

These are derivatives of constant_exprt which give a pointer's numerical address in the usual
constant value slot, but which also have an operand giving its symbolic value (e.g. "0xabcd0004"
vs. "&some_object + 4"
@smowton smowton force-pushed the smowton/cleanup/constant-pointer-expr branch from cfef69c to 58f8101 Compare August 19, 2019 09:34
@codecov-io
Copy link

Codecov Report

Merging #5034 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #5034   +/-   ##
========================================
  Coverage    69.48%   69.48%           
========================================
  Files         1310     1310           
  Lines       108813   108813           
========================================
  Hits         75609    75609           
  Misses       33204    33204
Impacted Files Coverage Δ
src/goto-programs/goto_trace.h 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82b08f8...58f8101. Read the comment docs.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: 58f8101).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/123697861

@smowton smowton merged commit 3e42990 into diffblue:develop Aug 19, 2019
@@ -292,4 +292,28 @@ void show_goto_trace(
if(cmdline.isset("stack-trace")) \
options.set_option("stack-trace", true);

/// Variety of constant expression only used in the context of a GOTO trace, to
/// give both the numeric value and the symbolic value of a pointer.
class goto_trace_constant_pointer_exprt : public constant_exprt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this clarifies some things. But could you add what you put in the PR description as a documentation here to make it even clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants